package com.eraasoftware.npa.client;

import com.eraasoftware.npa.client.RespHeader.Status;

public class ObjectResponse<T> {
	private T value;
	RespHeader header;

	public T value() {
		return getValue();
	}

	public void value(T value) {
		this.setValue(value);
	}

	public RespHeader header() {
		if (header == null)
			header = new RespHeader();
		return header;
	}

	public Status status() {
		return header.getStatus();
	}

	public T getValue() {
		return value;
	}

	public void setValue(T value) {
		this.value = value;
	}

}
